{tpl head}
<div class="mbx"><span class="fl"><a href="?">工作小助手管理中心</a>--{$name} </span><span class="fr"><a href="?c=purview&a=info">添加权限</a></span> </div>
<table class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
    <thead><tr class="n_bt"><td colspan="9" align="center">工作小助手系统</td></tr>
		<tr><th class="thbt" colspan="9">【{$title}】</th></tr>
	</thead>
    <tr>
        <td align="center"  class="thbt hr">ID</td>
        <td align="center"  class="thbt hr">父类</td>
        <td align="center"  class="thbt hr">说明</td>
        <td align="center"  class="thbt hr">标示</td>
        <td align="center"  class="thbt hr">排序</td>
        <td align="center"  class="thbt hr">显示</td>
        <td align="center"  class="thbt">操作</td>
    </tr>
    {loop $oj $v}
    <tr>
        <td width='4%'  class="hr" align="center" >{$v.actionid}</td>
        <td  class="hr" align="center">{$v.columnname}</td>
        <td  class="hr" align="center" ><a href="?a=mod&id={$v.actionid}">{$v.actionname}</a></td>
        <td  class="hr" align="center">{$v.unique}</td>
        <td class="hr" align="center">{$v.rank}</td>
        <td class="hr" align="center"><a class="{if $v.viewmode}show{else}hide{/if}" href="javascript:void(0);" onclick="is_show(this,{$v.actionid});" ></a>
        </td>
        <td align="center"><a class="mod" href="?c=purview&a=info&id={$v.actionid}">修改</a> <a class="del" href="?c=purview&a=del&id={$v.actionid}">删除</a></td>
    </tr>
    {/loop}
</table>
<script type="text/javascript">
    function is_show(obj,id){
        if(obj.className=='ok'){
            obj.className='hide';
            $.get("?c=purview&a=isshow&is_show=0&id="+id);
        }else{
            obj.className='ok';
            $.get("?c=purview&a=isshow&is_show=1&id="+id);
        }
        return true;
    }
</script>
{tpl foot}
